home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / TemaCD / povray / povwin3.exe / %MAINDIR% / Insert Menu / Ready-Made Scenes / Image Map.txt < prev    next >
Encoding:
Text File  |  2000-04-06  |  1.3 KB  |  76 lines

  1. // Persistence of Vision Ray Tracer Scene Description File
  2. // File: ?.pov
  3. // Vers: 3.1
  4. // Desc: Image Map Example
  5. // Date: mm/dd/yy
  6. // Auth: ?
  7. //
  8.  
  9. #version 3.1
  10.  
  11. #include "colors.inc"
  12.  
  13. global_settings
  14. {
  15.   assumed_gamma 1.0
  16. }
  17.  
  18. // ----------------------------------------
  19. camera
  20. {
  21.   location  <0.0, 0.0, -4.0>
  22.   direction 2*z
  23.   right     4/3*x
  24.   look_at   <0.0, 0.0,  0.0>
  25. }
  26.  
  27. sky_sphere
  28. {
  29.   pigment
  30.   {
  31.     gradient y
  32.     color_map { [0.0 color blue 0.6] [1.0 color rgb 1] }
  33.   }
  34. }
  35.  
  36. light_source
  37. {
  38.   0*x // light's position (translated below)
  39.   color red 1.0  green 1.0  blue 1.0  // light's color
  40.   translate <-30, 30, -30>
  41. }
  42.  
  43. // ----------------------------------------
  44. plane
  45. {
  46.   y, -1
  47.   texture
  48.   {
  49.     pigment {checker color rgb 1 color blue 1 scale 0.5}
  50.     finish {reflection 0.2}
  51.   }
  52. }
  53.  
  54. plane
  55. {
  56.   z, -1
  57.   texture
  58.   {
  59.     pigment
  60.     {
  61.       image_map
  62.       {
  63.         png "test.png"
  64.         interpolate 2 // smooth it
  65.         once   // don't tile image, just one copy
  66.         filter 0 0.8  // make 1st color mostly transparent
  67.         filter 1 0.8  // make 2nd color mostly transparent
  68.       }
  69.       // transform it to unit-size (-1 to +1)
  70.       translate -0.5*(x+y) // center on the origin
  71.       scale 2              // make it unit-sized
  72.     }
  73.     finish {ambient 0.3}
  74.   }
  75. }
  76.